<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<h2 class="contentTitle">密码修改</h2>

<div class="pageContent">
<form action="doChangepwdByUcode.do" method="post" class="pageForm required-validate" onsubmit="return validateCallback(this, navTabAjaxDone)">

	<div class="pageFormContent" layoutH="97">
		<input style="display: none" name="ucode" value="<%=request.getSession().getAttribute("usercode")%>"/>
		<dl class="nowrap">
			<dt>旧密码：</dt>
			<dd>
				<input class="required" type="password" name="oldpwd"  type="text" />
			</dd>
		</dl>
		
		<dl class="nowrap">
			<dt>新密码：</dt>
			<dd>
				<input class="required"  type="password"name="newpwd" type="text" />
			</dd>
		</dl>
		
		<dl class="nowrap">
			<dt>再次输入新密码：</dt>
			<dd>
				<input class="required"  type="password" name="newpwd2" type="text" />
			</dd>
		</dl>
		<ul>
			<li><button type="submit" >保存</button></li>
		</ul>
	</div>
	<div class="formBar">
		<ul>
			<li><div class="button"><div class="buttonContent"><button class="close" type="button">关闭</button></div></div></li>
		</ul>
	</div>
</form>
</div>

<script type="text/javascript">
	function doajax(){
		var lct = document.location;
		var baseUrl = [lct.protocol, "//", lct.host].join("")+"<%=request.getContextPath()%>"+"/";
		var params ={"ucode":10010001};
		jQuery.ajax({
			  url: baseUrl+"getPomrInfoByUcode.do",
			  type: 'post',
			  dataType : 'html',
			  data:params,
			  success: function(data) {
				  alert(data);
			  },
			  error: function(data) {
				  alert("e"+data);
			  }
		});

	}
</script>